﻿/************************************************************************/
/* FileName:        DrawTool
 * Author:          Aric.W
 * Created:         2013/9/18 15:34:00
 * Version:         A001
 * Compiler:        Visual Studio 2010
 * Description:     所有drawing tool的基类
 * 
 * History:
 * <Author>         <Time>              <Version>   <Desc>
 * Aric.W           2013/9/18 15:34:00  A001        create
/************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Common
{
    public abstract class DrawTool
    {
        /// <summary>
        /// 鼠标按下
        /// </summary>
        /// <param name="drawArea"></param>
        /// <param name="e"></param>
        public virtual void OnMouseDown(UserControl drawArea, MouseEventArgs e)
        {
        }

        /// <summary>
        /// 鼠标移动
        /// </summary>
        /// <param name="drawArea"></param>
        /// <param name="e"></param>
        public virtual void OnMouseMove(UserControl drawArea, MouseEventArgs e)
        {
        }

        /// <summary>
        /// 鼠标弹起
        /// </summary>
        /// <param name="drawArea"></param>
        /// <param name="e"></param>
        public virtual void OnMouseUp(UserControl drawArea, MouseEventArgs e)
        {
        }

        /// <summary>
        /// 鼠标双击
        /// </summary>
        /// <param name="drawArea"></param>
        /// <param name="e"></param>
        public virtual void OnMouseDBClick(UserControl drawArea, MouseEventArgs e)
        {
        }
    }
}
